package com.zyh.demo;

import com.zyh.domain.Student;

public class OPPDemo4 {
    public static void main(String[] args) {
        Object obj1 = new Object();
        Object obj2 = new Object();
        boolean equals = obj1.equals(obj2);
        System.out.println("equals = " + equals);
        System.out.println("------------------");
        Student stu1 = new Student(99);
        Student stu2 = new Student(99);
        String s = stu1.toString();
        System.out.println("s = " + s);
        String s1 = stu2.toString();
        System.out.println("s = " + s1);
        boolean equals1 = stu1.equals(stu2);
        System.out.println("equals1 = " + equals1);
    }
}
